/**
 * @version	$Id$
 * @package JCE File Browser
 * @copyright Copyright (C) 2005 - 2010 Ryan Demmer. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see licence.txt
 * This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 */
var WFFileBrowser = WFExtensions.add('FileBrowser', {
	
	settings 	: {},
	
	element 	: '',
	
	/**
	 * Initialize FileBrowser
	 * @param element Mixed Element or Element Selector
	 * @params options Object
	 */
	init : function(element, options) {
		$.extend(true, this.settings, options);	
		
		this.element = element;		
		this._createBrowser();
	},
	
	_createBrowser : function() {
		$(this.element).MediaManager(this.settings);
	},
	
	get : function(k) {
		return $(this.element).MediaManager(k);
	}
});